extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]100/150号航空燃油"
	info = "<限定>自身舰载机受到致命伤害时，免疫该次伤害并获得3秒无敌\n[color=#DC143C]同时装备两件时可升级[/color]"
	price = 300
	att.air = 80
	att.def = 40
	
func _connect():
	._connect()
	if masCha.isSumm:
		masCha.addBuff(b_100AirOil.new())

class b_100AirOil:
	extends "../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_100AirOil"
		dispel = 2
	func _connect():
		masCha.connect("onHurtDeath", self, "onHurtDeath")
	func onHurtDeath(atkInfo:AtkInfo):
		if atkInfo.hurtChaDead and masCha.hasBuff("b_wudi") == null:
			atkInfo.hurtChaDead = false
			masCha.addBuff(buff.b_wudi.new(3))
			self.isDel = true		

func upgrade():
	name = "[color=#FFFF00][史诗]100/150号航空燃油"
	info = "<限定>自身舰载机受到致命伤害时，免疫该次伤害并获得3秒无敌"
	att.air = 180
	att.def = 80